package wfm.entities;

import javax.faces.bean.ManagedBean;
import javax.faces.bean.ManagedProperty;
import javax.faces.bean.SessionScoped;

@ManagedBean(name="user")
@SessionScoped
public class User {

	public static final String GROUP_DESKTOPWORKER="desktopworker";
	public static final String GROUP_SUPERVISOR="supervisor";
	public static final String GROUP_SURVEYOR="surveyor";
	public static final String GROUP_WORKER="worker";
	
	@ManagedProperty(value = "#{name}")
	private String name=null;
	
	@ManagedProperty(value = "#{password}")
	private String password=null;
	 
	@ManagedProperty(value = "#{firstName}")
	private String firstName=null;
	
	@ManagedProperty(value = "#{lastName}")
	private String lastName=null;
	
	@ManagedProperty(value = "#{userGroup}")
	private String userGroup;

	
	public User(String userName, String password, String firstName,String lastName, String userGroup) {
		super();
		this.name = userName;
		this.password = password;
		this.firstName = firstName;
		this.lastName = lastName;
		this.userGroup = userGroup;
	}
	
	public User(){
		
	}
	
	public String getName() {
		return name;
	}
	public void setName(String userName) {
		this.name = userName;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public String getFirstName() {
		return firstName;
	}
	public void setFirstName(String firstName) {
		this.firstName = firstName;
	}
	public String getLastName() {
		return lastName;
	}
	public void setLastName(String lastName) {
		this.lastName = lastName;
	}
	public String getUserGroup() {
		return userGroup;
	}
	
	public void setUserGroup(String userGroup) {
		this.userGroup = userGroup;
	}
	
	
	
}
